﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Measures.aspx.cs" Inherits="DataStorage_Measures" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>基础数据维护</title>
    <base target="_self" />
    <link href="../css/css.css" rel="stylesheet" type="text/css" />
    <link href="../css/tab.css" type="text/css" rel="stylesheet" />

    <script src="../js/calendar.js" type="text/javascript"></script>

    <script src="../js/Common.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">   
			  
      function BtnSubmit()
      {
          if(form1.sltArea.value == "")
          {
              form1.sltArea.focus();
              alert("省份不能为空！");
              return;
          }

          if(form1.txtYears.value == "")
          {
              form1.txtYears.focus();
              alert("年月不能为空！");
              return;
          }
          
          if(form1.txtName.value == "")
          {
              form1.txtProportion.focus();
              alert("节能手段名称不能为空！");
              return;
          }
                        
          var btnSave=window.document.getElementById("SaveData");
		      if(btnSave!=null)
		         btnSave.click();
      }
    </script>

</head>
<body style="background-image: url('../images/hit_bg.gif');">
    <% 
        Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
        Response.Expires = 0;
        Response.CacheControl = "no-cache";
    %>
    <form id="form1" runat="server">
        <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="327AC6">
            <tr style="background-color: #F9F9FB; height: 25;">
                <td align="right" style="width: 40%">
                    &nbsp;<strong>区域：</strong></td>
                <td>
                    &nbsp;<select id="sltArea" runat="server" style="width: 110px;">
                    </select><span style="color: #ff0000">*</span></td>
            </tr>
            <tr style="background-color: #F9F9FB; height: 25;">
                <td align="right" style="width: 40%">
                    &nbsp;<strong>起始日期：</strong></td>
                <td>
                    &nbsp;<asp:TextBox ID="txtYears" runat="server" CssClass="TextBox" MaxLength="10"
                        TabIndex="1" Style="width: 110px;" onclick="calendardate(this,true);"></asp:TextBox><span style="color: #ff0000">*</span></td>
            </tr>
            <tr style="background-color: #F9F9FB; height: 25;">
                <td align="right">
                    &nbsp;<strong>&nbsp;&nbsp;节能手段名称：</strong></td>
                <td>
                    &nbsp;<asp:TextBox ID="txtName" runat="server" CssClass="TextBox" MaxLength="10"
                        TabIndex="2" Style="width: 110px;"></asp:TextBox><span style="color: #ff0000">*</span></td>
            </tr>
             <tr style="background-color: #F9F9FB;">
                <td align="right">
                    &nbsp;<strong>&nbsp;&nbsp;描述：</strong></td>
                <td>
                    &nbsp;<select id="sltState" runat="server" style="width:111px">
                        <option value="1">启用</option>
                        <option value="0">弃用</option>
                    </select></td>
            </tr>
             <tr style="background-color: #F9F9FB; height: 25;">
                <td align="right" >
                    &nbsp;<strong>&nbsp;&nbsp;描述：</strong></td>
                <td>
                    &nbsp;<asp:TextBox ID="txtDisc" runat="server" CssClass="TextBox" MaxLength="10"
                        TabIndex="3" TextMode="MultiLine" Height="111px" Width="111px"></asp:TextBox></td>
            </tr>
            <tr style="height: 30; background-color: #F9F9FB">
                <td>
                </td>
                <td>
                    <input id="SaveData" type="button" style="width: 0; height: 0;" class="button02"
                        runat="server" value="提交" onserverclick="SaveData_ServerClick" />
                    <input type="button" id="Button1" value="提交" class="button02" onclick="BtnSubmit();" />
                    <input type="button" id="Button2" value="退出" class="button02" onclick="window.location.href='MeasuresManage.aspx';" /></td>
            </tr>
        </table>
    </form>
</body>
</html>
